<style>
	.layui-upload-list .layui-upload-img {
		margin-top: 0px;
	}
	.category-view{
		display: flex;
		flex-wrap:wrap;
	}
	.category-delete{
		border: 1px solid #d2d2d2;
		border-radius: 2px;
		padding:2px 12px;
		margin-right: 10px;
		height: 32px;
		line-height: 32px;
		margin-top: 6px;
	}
	.file-list{
		display: block;
	}
	.file-list-son{
		display: block!important;
		width: 400px!important;
		height: 16px!important;
		line-height: 16px!important;
		text-align: left!important;
		background: #fefefe!important;
		color:blue!important;
		margin-bottom:6px!important;
	}
</style>
<form class="layui-form" lay-filter="tpl_brandcert{$id}" action="{:url('brandcert/saveData')}">
	<input type="hidden" name="id" class="layui-input" />
	<div class="layui-form-item">
		<label class="layui-form-label">品牌名称</label>
		<!-- <div class="layui-input-inline">
			<input type="text" name="brand_name" lay-verify="required" placeholder="请输入品牌名称" autocomplete="off"
				class="layui-input">
		</div> -->
		
		<div class="layui-input-inline">
			<div class="layui-form-select">
				<div class="layui-select-title">
					<input id="brand_div_{$id}" type="text" autocomplete="off" placeholder="请选择品牌" value="" class="layui-input">
					<i class="layui-edge"></i>
				</div>
				<dl class="layui-anim layui-anim-upbit" id="brand_{$id}" style="">
					<dd lay-value="" class="layui-select-tips layui-this">请选择</dd>
				</dl>
			</div>
			<input type="text" style="width: 0px;height:0px;border:0px;" name="brand_name" autocomplete="off" class="layui-input">
			
		</div>
	</div>
	{if condition="$is_supplier NEQ 1"}
	<div class="layui-form-item">
		<label class="layui-form-label">来源</label>
		<div class="layui-input-inline">
			<select name="source" lay-verify="required" lay-filter="source">
				<option value="">请选择</option>
				<option value="采购部">采购部</option>
				<option value="产品部">产品部</option>
				<option value="市场部">市场部</option>
			</select>
		</div>
	</div>
	{/if}
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">授权文件</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm file-list">

				<div class="layui-upload-list layui-upload-list-files item_container file-list" id="layui-upload-files{$id}">

				</div>
				<div class="layui-upload-drag files_upload" id="files_upload{$id}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">

				</div>
			</blockquote>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">商标注册证</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm file-list">
				<div class="layui-upload-list layui-upload-list-cert item_container file-list" id="layui-upload-cert{$id}">

				</div>
				<div class="layui-upload-drag cert_upload" id="cert_upload{$id}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">

				</div>
			</blockquote>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">授权品类范围</label>
		<div class="layui-input-inline" style="width: 800px;">
			<div style="display: flex;">
				<div>
					<input type="checkbox" name="all_category" lay-filter="all_category" title="全品类" value="全品类" />
				</div>
				<div class="layui-input-inline">
					<select name="category_sign1" id="category_level1_{$id}" lay-filter="category_level1_{$id}" lay-search>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="category_sign2" id="category_level2_{$id}" lay-filter="category_level2_{$id}" lay-search>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="category_sign3" id="category_level3_{$id}" lay-filter="category_level3_{$id}" lay-search>
					</select>
				</div>
					
				<div class="layui-form-select" style="display: none;">
					<div class="layui-select-title">
						<input id="brandcert_div_{$id}" type="text" autocomplete="off" placeholder="请选择三级品类" value="" class="layui-input">
						<i class="layui-edge"></i>
					</div>
					<dl class="layui-anim layui-anim-upbit" id="brandcert_{$id}" style="">
						<dd lay-value="" class="layui-select-tips layui-this">请选择</dd>
					</dl>
				</div>
			</div>
			<div class="category-view category-view_{$id}">
					
			</div>
			<input type="text" style="width: 0px;height:0px;border:0px;" name="category_arr" autocomplete="off" class="layui-input">
				
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label">授权商品</label>
		<div class="layui-input-inline">
			<input type="text" name="goods" placeholder="多个产品编码(军网编号)用逗号隔开" value="" autocomplete="off" class="layui-input">
			<span style="color: red;">多个产品编码(军网编号)用逗号隔开</span>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">运营备注</label>
		<div class="layui-input-inline">
			<input type="text" name="beizhu" placeholder="请输入运营备注" value="" autocomplete="off" class="layui-input">
			<span style="color: red;">根据授权范围同步商品运营备注</span>
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">授权区域</label>
		<div class="layui-input-inline" style="width: 800px;">
			<div class="layui-form-select">
				<select name="select_city_{$id}" lay-filter="select_city_{$id}">
				</select>
			</div>
			<div class="category-view area-view_{$id}">
				
			</div>
			<input type="text" style="width: 0px;height:0px;border:0px;" name="area" autocomplete="off" class="layui-input">
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">授权分级</label>
		<div class="layui-input-inline">
			<select name="levels" lay-verify="required" lay-filter="levels">
				<option value="原厂授权">原厂授权</option>
				<option value="二级授权（一级转授权）">二级授权（一级转授权）</option>
				<option value="其他（多级）">其他（多级）</option>
				<option value="区域授权">区域授权</option>
				<option value="项目授权">项目授权</option>
			</select>
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">授权补充</label>
		<div class="layui-input-inline">
			<input type="text" name="levels_intro" placeholder="项目/区域/竞价等类授权需填写说明" value="" autocomplete="off" class="layui-input">
			<span style="color: red;">项目/区域/竞价等类授权需填写说明</span>
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">授权公司</label>
		<div class="layui-input-inline">
			<input type="text" name="company" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">被授权公司</label>
		<div class="layui-input-inline">
			<select name="companyed" lay-verify="required" lay-filter="companyed">
				<option value="">请选择</option>
					<option value="泰龙吉">泰龙吉</option>
					<option value="优士">优士</option>
					<option value="多米">多米</option>
					<option value="美辰">美辰</option>
					<option value="华舰">华舰</option>
					<option value="广安卓品">广安卓品</option>
				
			</select>

		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">授权提供方</label>
		<div class="layui-input-inline">
			<input type="text" name="tigongfang" lay-verify="required" value="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">授权开始时间</label>
		<div class="layui-input-inline">
			<input name="start_date" lay-verify="required" type="text" readonly="" class="layui-input right-select" />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">授权截止时间</label>
		<div class="layui-input-inline">
			<input name="end_date" lay-verify="required" type="text" readonly="" class="layui-input right-select" />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">是否需要报备</label>
		<div class="layui-input-inline">
			<input type="text" name="is_baobei" value="不需要报备" placeholder="不需要报备" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label addRedStar">授权渠道</label>
		<div class="layui-input-inline" style="width: 600px;">
			<input type="checkbox" name="channel[]" lay-filter="channel" title="全行业" value="全行业" />
			<input type="checkbox" name="channel[]" lay-filter="channel" title="军采" value="军采" />
			<input type="checkbox" name="channel[]" lay-filter="channel" title="政采" value="政采" />
			<input type="checkbox" name="channel[]" lay-filter="channel" title="线上" value="线上" />
			<input type="checkbox" name="channel[]" lay-filter="channel" title="线下" value="线下" />
		</div>
	</div>
	
	<div class="layui-inline">
		<label class="layui-form-label">管理部门</label>
		<div class="layui-input-inline">
			<select name="department" lay-filter="department_search" id="department" lay-search>
				<option value="">请选择</option>
				<option value="采购部">采购部</option>
				<option value="产品部">产品部</option>
				<option value="市场部">市场部</option>
			</select>
		</div>
	</div>
	
	


	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit
				lay-filter="submit_brandcert">提交</button>
		</div>
	</div>
</form>
<script>
	// 赋值
	var brandcert_form_value = {$data};
	var id = {$id};
	var brand_select_uri = "{:url('brandcert/selectBrand')}";
	var category_select_uri = "{:url('Category/ajaxCategory')}";
	var area_select_uri = "{:url('brandcert/selectArea')}";
	var category_arr = [];
	var area_arr = [];
	var channel_arr = [];
	var parent_sign = '';
	var parent_sign_two = '';
</script>
<script src="/static/js/brandcert/tpl.js" type="text/javascript" charset="utf-8"></script>